﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using System.Xml;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using LNBMS.Web.Interface;

namespace LNBMS.Web
{
    public partial class Index : System.Web.UI.Page
    {
        public static string loginMsg = string.Empty;
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Session["username"] != null)
            {
                string username = Session["username"].ToString();
                loginMsg = username == "admin" ? "admin" : CheckUsername.ZoneidToName(username);
            }
            else
                Response.Redirect("Login.aspx");
        }

        protected void exit_Cilck(object sender, EventArgs e)
        {
            Session.Abandon();
        }
    }
}